package stringDemo;

import java.util.Scanner;

//判断输入字符串是否是回文字符串
public class StringBuilderTest {
    public static void main(String[] args) {
        method();


    }

    private static void method2() {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
        char []chars=str.toCharArray();
        if (chars.length==1){
            System.out.println("是回文");
        }else {
            boolean bool=true;
            int start=0;
            int end=chars.length-1;
            while (end>start){
                if (chars[start]!=chars[end]){
                    bool=false;
                }
                start++;
                end--;
            }
            if (bool==true){
                System.out.println("是回文");
            }else {
                System.out.println("不是回文");
            }
        }
    }

    private static void method() {
        StringBuilder sb=new StringBuilder();
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
            sb.append(str);
            if (sb.reverse().toString().equals(str)){
                System.out.println("是");
            }else {
                System.out.println("不是");
            }
    }
}
